package com.yangle.frame.admin.service;

import com.yangle.frame.admin.entity.User;
import com.yangle.frame.admin.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yangle on 2018/6/1.
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;
    public List<User> getAlls(){
        return userMapper.getUsers();
    }

    public User getUser(){
        return userMapper.getUser();
    }

    public List<User> getAll(){
        return userMapper.selectAll();
    }


}
